Add custom message to gate tickets

To add a custom message to a gate ticket:

  1. Ensure that the resource bundle for your site contains the customized gate messages.

To add or edit a resource bundle, you can use the Administration Settings Resource Bundles view.

  1. In the gate configuration, include the LogUserMessage (on page 1) business task for each gate transaction type at the ingate stages.

You can use Configuration Gate Gate Configurations Gate Configurations View Tran Type Form to include a business task for a gate transaction type.

In the Tran Type form (on page 1):

  1. Click Edit Business Tasks.

N4 displays the Business Tasks Form (on page 1).

  1. In the Business Tasks form, select LogUserMessage business task.

  2. Select Actions Include Business Task to include the business task in the gate configuration.

  3. Next, select Actions Set Parameter option.

N4 now displays a form with the text fields for the selected business task parameter(s). For more information about the various parameters for the business task, see LogUserMessage (on page 1) business task.

  1. Click OK.

  1. In the gate documents for PICKUP and DROPOFF, export .xsl files and edit the file to modify the following sections and then re-import:

   <xsl:template name="retrieveAllData">

       <xsl:for-each select="*|@*|text()">

           <fo:table-row>

               <fo:table-cell>

                   <fo:block>

                       <xsl:value-of select="."/>

                   </fo:block>

               </fo:table-cell>

           </fo:table-row>

       </xsl:for-each>

   </xsl:template>

 

   <xsl:template name="retrieveAllData">

       <xsl:for-each select="argo:Message/info|argo:Message/message">

           <fo:table-row>

               <fo:table-cell>

                   <fo:block>

                       <xsl:value-of select="."/>

                   </fo:block>

               </fo:table-cell>

           </fo:table-row>

       </xsl:for-each>

   </xsl:template>

  1. Complete a DI gate transaction at the ingate stage.

  1. Check to ensure that the gate transaction document, PICKUP, has the requisite message included when you export document as XML and edit.

  2. Now reprint the PICKUP document from the gate transaction to check the results.